package com.liang.dao;

import com.liang.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {
    //增加一本书
    int addBook(Books books);
    //删除一本书，根据id
    int deleteBookByID(@Param("bookID") int id);
    //更新一本书(要传递一本完整的书)
    int updateBook(Books books);
    //查询一本书，根据id
    Books queryBookByID(@Param("bookID") int id);
    //查询全部书
    List<Books> queryAllBooks();

    //根据名字查询书籍
    List<Books> queryBookByName(@Param("queryBookName") String bookName);

}
